package me.zhenqu.redis.utils;

/**
 * Created by IntelliJ IDEA.
 * User: yibing.tan
 * Date: 11-11-14
 * Time: 下午4:15
 * To change this template use File | Settings | File Templates.
 */
import org.apache.commons.lang.math.NumberUtils;

public class Str2LongTransformer implements Transformer<String, Long> {
    public static Str2LongTransformer INSTANCE = new Str2LongTransformer();

    @Override
    public Long transform(String str) {
        return str == null ? null : NumberUtils.toLong(str);
    }
}
